package test.gateway.a.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import test.gateway.a.BindProperties;

@RestController
@RequestMapping("/test")
public class ConfigLoadController {

    @Autowired
    BindProperties bindProperties;

    @GetMapping("/config")
    public String config(){
        return bindProperties.getKey()+":"+bindProperties.getPassword();
    }
}
